package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Zanr;

public interface ZanrService {

	public abstract Collection<Zanr> getAll();

	public Zanr getGenreById(int id);

	public Zanr getGenreByName(String name);
	
	@CommitAfter
	public void addGenre(Zanr zanr);

	@CommitAfter
	public void deleteGenre(Zanr zanr);
	
}